

<!DOCTYPE html>
<html>
	<head>
		<title>网盘链接</title>
		<meta charset="UTF-8" />
		<script>
			function processString1() {
				let inputStr = document.getElementById("inputText").value;
		
				// 使用正则表达式提取视频标题和链接
				let regex = /「(.*?)」[^]+?链接：(https?:\/\/[\w./?=&]+)\n/g;
				let matches;
				let processedStr = "";
		
				while ((matches = regex.exec(inputStr)) !== null) {
					let videoTitle = matches[1];
					let videoLink = matches[2];
		
					processedStr += videoTitle + "\n" + videoLink + "\n";
				}
		
				document.getElementById("outputText").value = processedStr;
			}
		
			function processString2() {
				let inputStr = document.getElementById("inputText").value;
		
				// 使用正则表达式提取视频标题和链接
				let regex = /「(.*?)」[^]+?链接：(https?:\/\/[\w./?=&]+)\n/g;
				let matches;
				let processedStr = "";
		
				while ((matches = regex.exec(inputStr)) !== null) {
					let videoTitle = matches[1];
					let videoLink = matches[2];
		
					processedStr += videoTitle + "," + videoLink + "\n";
				}
		
				document.getElementById("outputText").value = processedStr;
			}
		
			function processString3() {
				let inputStr = document.getElementById("inputText").value;
		
				// 使用正则表达式提取视频标题和链接
				let regex = /「(.*?)」[^]+?链接：(https?:\/\/[\w./?=&]+)\n/g;
				let matches;
				let processedStr = "";
		
				while ((matches = regex.exec(inputStr)) !== null) {
					let videoTitle = matches[1];
					let videoLink = matches[2];
		
					processedStr += videoTitle + "----" + videoLink + "\n";
				}
		
				document.getElementById("outputText").value = processedStr;
			}
		
			function processString12() {
				let inputStr = document.getElementById("inputText").value;
		
				// 使用正则表达式提取视频标题和链接
				let regex = /(\d+)\.(.*?)\n(https?:\/\/[\w./?=&]+)\n/g;
				let matches;
				let processedStr = "";
		
				while ((matches = regex.exec(inputStr)) !== null) {
					let videoTitle = matches[2];
					let videoLink = matches[3];
		
					processedStr += videoTitle + "," + videoLink + "\n";
				}
		
				document.getElementById("outputText").value = processedStr;
			}
		
			function processString13() {
				let inputStr = document.getElementById("inputText").value;
		
				// 使用正则表达式提取视频标题和链接
				let regex = /(\d+)\.(.*?)\n(https?:\/\/[\w./?=&]+)\n/g;
				let matches;
				let processedStr = "";
		
				while ((matches = regex.exec(inputStr)) !== null) {
					let videoTitle = matches[2];
					let videoLink = matches[3];
		
					processedStr += videoTitle + "----" + videoLink + "\n";
				}
		
				document.getElementById("outputText").value = processedStr;
			}
		</script>
	</head>
	<body>
		<textarea id="inputText" cols="50" style="min-height: 150px;"></textarea>
		<br>
		<button onclick="processString1()">飞书格式</button>
		<button onclick="processString2()">CVS格式</button>
		<button onclick="processString3()">纷传格式</button>
		<br>
		<button onclick="processString12()">飞书转CVS</button>
		<button onclick="processString13()">飞书转纷传</button>
		<br>
		<textarea id="outputText" cols="100" style="min-height: 150px;"></textarea>
	</body>
</html>